import {getInitPower} from "../../api/getInitPower"
import {GETINITPOWER} from "../mutations-type"

 const Power= {
    state: {
    },
    mutations: {
        [GETINITPOWER](state,obj) {
            state.data=obj
        }
    },
    actions: {
        async getInitPower({commit},obj) {
            let data =await getInitPower(obj)
            console.log(data)
            commit("GETINITPOWER",data)
            return data
        }
    }
}
export default Power